package com.hjq.mallmember;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 远程调用的步骤
 * 1。引用openFeign,还要引用loadBalancer
 * 2.写接口，让别人远程调用
 *   1.在接口里声明要调用的接口的名称（完整的request mapping,request param）
 *   2.要使用远程客户端的微服务开启Feign功能@EnableFeignClients
 */
@SpringBootApplication
@MapperScan("com.hjq.mallmember.dao")
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.hjq.mallmember.feign")
@EnableRedisHttpSession
public class MallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(MallMemberApplication.class, args);
    }

}
